package cn.xspace.wnx.broadreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.hyphenate.chat.EMMessage;
import com.xspace.android.xafcommon.util.LogUtil;

import cn.xspace.wnx.util.Notifier;

/**
 * Wubj 创建于 2017/3/31 0031.
 */
public class HuanXinPushReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(final Context context, Intent intent) {
        LogUtil.d("wubaojie>>>onReceive: 接收到了环信分发的推送");
        EMMessage emMessage = intent.getParcelableExtra("message");
        Notifier.getInstance().onNewMsg(emMessage);
    }
}
